package net.ojbk.study.twobox.beans.form.query;

import net.ojbk.study.twobox.beans.form.InputItem;
import net.ojbk.study.twobox.beans.po.Class;
import net.ojbk.study.twobox.beans.vo.SelectOption;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: twobox
 * Date: 2019/4/18
 * Time: 10:37
 * Description: No Description
 */
@Component
public class ClassQueryForm extends SupperQueryForm<Class> {
    public ClassQueryForm() {
        this.inputItems.add(new InputItem("班级名称",
                "classname",
                "",
                "text"));


        //未开课、已开课、已结束
        List<SelectOption> selectOptions = new ArrayList<>();
        selectOptions.add(new SelectOption("未开课", "未开课"));
        selectOptions.add(new SelectOption("已开课", "已开课"));
        selectOptions.add(new SelectOption("已结束", "已结束"));
        this.inputItems.add(new InputItem("状态",
                "cstate",
                "未开课",
                "select", selectOptions));
    }
}
